<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_quiz_question_knowledge_point".
 *
 * @property string $id 主键
 * @property string $ques_id 问题id
 * @property string $point_id 知识点id
 * @property string $course_id
 * @property int $del_flag 删除标志
 * @property string $create_by 创建者
 * @property string $create_time 创建时间
 * @property string $update_by 更新者
 * @property string $update_time 更新时间
 */
class TQuizQuestionKnowledgePoint extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_quiz_question_knowledge_point';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['del_flag'], 'integer'],
            [['create_time', 'update_time'], 'safe'],
            [['id', 'ques_id', 'point_id', 'course_id', 'create_by', 'update_by'], 'string', 'max' => 36],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'ques_id' => 'Ques ID',
            'point_id' => 'Point ID',
            'course_id' => 'Course ID',
            'del_flag' => 'Del Flag',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
        ];
    }
}
